home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / ctptri.z / ctptri
Encoding:
Text File  |  2002-10-03  |  3.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCTTTTPPPPTTTTRRRRIIII((((3333SSSS))))                                                          CCCCTTTTPPPPTTTTRRRRIIII((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CTPTRI - compute the inverse of a complex upper or lower triangular
  10.      matrix A stored in packed format
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CTPTRI( UPLO, DIAG, N, AP, INFO )
  14.  
  15.          CHARACTER      DIAG, UPLO
  16.  
  17.          INTEGER        INFO, N
  18.  
  19.          COMPLEX        AP( * )
  20.  
  21. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  22.      These routines are part of the SCSL Scientific Library and can be loaded
  23.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  24.      directs the linker to use the multi-processor version of the library.
  25.  
  26.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  27.      4 bytes (32 bits). Another version of SCSL is available in which integers
  28.      are 8 bytes (64 bits).  This version allows the user access to larger
  29.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  30.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  31.      only one of the two versions; 4-byte integer and 8-byte integer library
  32.      calls cannot be mixed.
  33.  
  34. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  35.      CTPTRI computes the inverse of a complex upper or lower triangular matrix
  36.      A stored in packed format.
  37.  
  38. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  39.      UPLO    (input) CHARACTER*1
  40.              = 'U':  A is upper triangular;
  41.              = 'L':  A is lower triangular.
  42.  
  43.      DIAG    (input) CHARACTER*1
  44.              = 'N':  A is non-unit triangular;
  45.              = 'U':  A is unit triangular.
  46.  
  47.      N       (input) INTEGER
  48.              The order of the matrix A.  N >= 0.
  49.  
  50.      AP      (input/output) COMPLEX array, dimension (N*(N+1)/2)
  51.              On entry, the upper or lower triangular matrix A, stored
  52.              columnwise in a linear array.  The j-th column of A is stored in
  53.              the array AP as follows:  if UPLO = 'U', AP(i + (j-1)*j/2) =
  54.              A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*((2*n-j)/2) =
  55.              A(i,j) for j<=i<=n.  See below for further details.  On exit, the
  56.              (triangular) inverse of the original matrix, in the same packed
  57.              storage format.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCTTTTPPPPTTTTRRRRIIII((((3333SSSS))))                                                          CCCCTTTTPPPPTTTTRRRRIIII((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      INFO    (output) INTEGER
  75.              = 0:  successful exit
  76.              < 0:  if INFO = -i, the i-th argument had an illegal value
  77.              > 0:  if INFO = i, A(i,i) is exactly zero.  The triangular matrix
  78.              is singular and its inverse can not be computed.
  79.  
  80. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  81.      A triangular matrix A can be transferred to packed storage using one of
  82.      the following program segments:
  83.  
  84.      UPLO = 'U':                      UPLO = 'L':
  85.  
  86.            JC = 1                           JC = 1
  87.            DO 2 J = 1, N                    DO 2 J = 1, N
  88.               DO 1 I = 1, J                    DO 1 I = J, N
  89.                  AP(JC+I-1) = A(I,J)              AP(JC+I-J) = A(I,J)
  90.          1    CONTINUE                    1    CONTINUE
  91.               JC = JC + J                      JC = JC + N - J + 1
  92.          2 CONTINUE                       2 CONTINUE
  93.  
  94.  
  95. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  96.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  97.  
  98.      This man page is available only online.
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.